/**
 * Copyright (c) 2019 xstgongyi.org
 * All rights reserved.
 */
package org.xstgongyi.eduaid.dao;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.xstgongyi.eduaid.dataobject.ProjectPhaseDO;
import org.xstgongyi.eduaid.bo.ProjectPhaseStatus;

/**
 * @author oldcrane<br/>
 * @created 2019-04-03
 */
@Mapper
public interface ProjectPhaseMapper {

	List<ProjectPhaseDO> listByProject(Integer projectId);

	ProjectPhaseDO getById(Integer id);

	List<ProjectPhaseDO> list(Map<String, Object> condition);

	int insert(ProjectPhaseDO projectPhase);

	int updateStatus(Integer id, ProjectPhaseStatus status, LocalDateTime gmtUpdated);

}
